<div class="address_block">
<h1><?php echo $label ?></h1>
<div class="korvinfobox">
	<?php foreach($addresses as $index => $address): ?>
	<div class="korvinfoboxrow<?php echo $index == 0 ? '' :'bottom' ?>">
		<div class="korvinfoboxleft bottom"></div>
		<div class="korvinfoboxright">
			<h2><?php echo sprintf('%s, %s, %s, %s, %s', $address['address'],$address['city'],$address['state'],$address['zip'],$address['country']) ?></h2>
		</div>
		<div class="clear"></div>
	</div>
	<div class="korvinfoboxrow">
		<div class="korvinfoboxleft bottom">
		</div>
		<div class="korvinfoboxright">
			<div class="bluebutton">
				<div class="bluebuttonleft"><img src="/enermaatik/img/bbl.png" width="8" height="26" alt=""/></div>
				<div class="bluebuttoncenter">
					<p><a class="edit_address" href="<?php echo $address['id'] ?>"><?php echo __('vali') ?></a></p>

				</div>
				<div class="bluebuttonright"><img src="/enermaatik/img/bbr.png" width="8" height="26" alt=""/></div>
				<div class="clear"></div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<?php endforeach; ?>




	<div class="korvinfoboxrowbottom">
		<div class="korvinfoboxleft bottom lisarow"></div>

		<div class="korvinfoboxright">
			<h2><?php echo __('sisesta aadress') ?></h2>
		</div>
		<div class="clear"></div>
	</div>
	<div class="korvinfoboxrow">
		<div class="korvinfoboxleft bottom">
		</div>
		<div class="korvinfoboxright">
			<div class="bluebutton">
				<div class="bluebuttonleft"><img src="/enermaatik/img/bbl.png" width="8" height="26" alt=""/></div>
				<div class="bluebuttoncenter">
					<p><a class="edit_address" href="<?php echo $type ?>"><?php echo __('sisesta') ?></a></p>
				</div>
				<div class="bluebuttonright"><img src="/enermaatik/img/bbr.png" width="8" height="26" alt=""/></div>

				<div class="clear"></div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>

<div class="address_block_form">
	<?php include_partial('basketPage/form', array('form' => $form)) ?>
        <?php if ($form['type']->getValue() == 'shipping'): ?>
          &nbsp;<input type="checkbox" id="billing_same"  />&nbsp;<?php echo __('shipping address sama kui billing'); ?>
        <?php endif;?>
</div>
<div class="ccontentmainbottom"></div>
<div class="clear"></div>
<br /><br />
</div>